def filter_numbers(num_list, target_value):
    def inner():
        result = [num for num in num_list if num > target_value]
        return result
    return inner()
numbers = [1, 5, 8, 10, 3]
target = 4
print(filter_numbers(numbers, target))
